﻿@using System.Web.UI.WebControls
@using DevExpress.Web.ASPxEditors
@using DevExpress.Web.Mvc.UI
@using Dogshow.Web.Controllers
@model int?

@Html.DevExpress().ComboBox(s =>
{
    s.Name = "IdVlasnika";
    s.ShowModelErrors = true;
    s.Properties.DropDownRows = 10;
    s.Properties.ValueType = typeof(int);
    s.Properties.ValueField = "Id";
    s.Properties.TextField = "ImeIPrezime";
    s.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
    //s.Properties.FilterMinLength = 3;
    s.Properties.EnableCallbackMode = true;
    s.CallbackRouteValues = new { Controller = "Psi", Action = "VlasnikPsaComboBox" };
    s.ControlStyle.CssClass = "editor";
    s.Properties.Buttons.Add(new EditButton("+"));
    s.Properties.ClientSideEvents.ButtonClick = "openPopup";
    s.Properties.Columns.Add("ImeIPrezime", "Ime i prezime");
    s.Properties.Columns.Add("Mesto.Naziv", "Mesto");
}).BindList(KinoloziController.FiltrirajKinologePoDeluImena, KinoloziController.FiltrirajKinologaPoId).BindList(KinoloziController.VratiKinologaPoId(Model)).Bind(Model).GetHtml()
     